make reqif and xml import available from GUI#73
Merged
Conversation
Contributor
odungern
commented
Feb 26, 2026
- plus a major refactoring of file-names and locations.
- now all code belonging to a plugin is in a single folder.
- importReqIF() works like importJSONLD() and importXML() - included build-info on homepage - take App title in header from definitions (originally from package.json)
- all code of a plugin is now in a single folder - added XML import from GUI
Contributor
There was a problem hiding this comment.
Pull request overview
This PR exposes ReqIF/XML/JSON-LD import (and some export stubs) through the GUI by restructuring import/export logic into plugin folders and wiring plugin components into the app for dynamic mounting.
Changes:
- Refactor importers from
src/utils/import/**intosrc/plugins/import/**and update unit tests to use the new importer classes. - Add Vuetify-based import components (XML/ReqIF/JSON-LD) plus mount scripts so they can be discovered and mounted via the plugin loader.
- Update PIG schema/model code (e.g., composed-property naming, constraints), plus assorted metadata/docs updates.
Reviewed changes
Copilot reviewed 37 out of 42 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/import-xml.spec.ts | Updates XML importer test to use XmlImporter.import() and renames test descriptions. |
| tests/unit/import-reqif.spec.ts | Updates ReqIF tests to use ReqifImporter.import() and adds recursive test file discovery. |
| tests/unit/import-jsonld.spec.ts | Updates JSON-LD tests to use JsonldImporter.import() and normalizes node imports. |
| tests/data/XML/11/Alice.pig.xml | Renames a test entity id from pig:HierarchyRoot to pig:Root. |
| tests/data/JSON-LD/11/Alice.pig.jsonld | Aligns test entity id/title with the new “Root” naming. |
| src/utils/schemas/pig/ts/pig-package-constraints.ts | Adds TODO notes for subProperty/subClass hierarchy consistency checks. |
| src/utils/schemas/pig/ts/pig-metaclasses.ts | Renames composed-property fields to composes, adds XSD datatype enum, and updates parsing/mapping logic. |
| src/utils/schemas/pig/jsonld/pig-schemata-jsonld.ts.goodButReplaced | Removes a large replaced JSON-LD schema implementation (deleted file). |
| src/utils/schemas/pig/jsonld/pig-schemata-jsonld.ts | Exports SCHEMA_FILES directly for external use. |
| src/utils/schemas/pig/json/pig-schemata.ts | Tightens relationship link cardinality (maxItems: 1). |
| src/utils/lib/messages.ts | Comment formatting changes (no functional change) and defines rspOK singleton used by importers. |
| src/utils/lib/definitions.ts | Bumps pigVersion and retains build metadata via BUILD_INFO. |
| src/utils/lib/build-info.ts | Removes old generated build-info location (deleted file). |
| src/utils/import/xml/import-package-xml.ts | Removes old XML importer (moved to plugin area). |
| src/utils/import/jsonld/import-package-jsonld.ts | Removes old JSON-LD importer (moved to plugin area). |
| src/utils/import/ReqIF/import-reqif.ts | Removes old ReqIF importer (moved to plugin area). |
| src/plugins/import/xml/mount-import-xml.ts | Adds Vue plugin installer for XML import component and exports importer. |
| src/plugins/import/xml/import-xml.vue.new | Adds an alternative XML import UI implementation (currently not wired). |
| src/plugins/import/xml/import-xml.vue | Adds Vuetify-based XML import dialog component for GUI import. |
| src/plugins/import/xml/import-xml.ts | Adds XmlImporter static class implementation in plugin structure. |
| src/plugins/import/reqif/mount-import-reqif.ts | Updates mount script to reference the new ReqIF import component filename. |
| src/plugins/import/reqif/import-reqif.vue | Adds Vuetify-based ReqIF import dialog component. |
| src/plugins/import/reqif/import-reqif.ts | Adds ReqifImporter static class implementation in plugin structure. |
| src/plugins/import/jsonld/mount-import-jsonld.ts | Updates mount script to reference the new JSON-LD import component filename. |
| src/plugins/import/jsonld/import-jsonld.vue | Adds Vuetify-based JSON-LD import dialog component. |
| src/plugins/import/jsonld/import-jsonld.ts | Adds JsonldImporter static class implementation in plugin structure. |
| src/plugins/export/ttl/mount-export-ttl.ts | Updates mount script to reference the new TTL export component filename. |
| src/plugins/export/ttl/export-ttl.vue | Adds a stub Vuetify export dialog for TTL/RDF export. |
| src/plugins/export/jsonld/mount-export-jsonld.ts | Updates mount script to reference the new JSON-LD export component filename. |
| src/plugins/export/jsonld/export-jsonld.vue | Adds a stub Vuetify export dialog for JSON export. |
| src/plugins/Imports/ReqifImportPlugin.vue | Removes older import plugin component in previous folder layout (deleted file). |
| src/plugins/Imports/JsonImportPlugin.vue | Removes older JSON import plugin component in previous folder layout (deleted file). |
| src/main.ts | Changes logging and provides importComponents/exportComponents for dynamic mounting. |
| src/components/Viewing.vue | Minor formatting/log cleanup. |
| src/components/Interfaces.vue | Fixes dynamic component rendering to render component objects and swaps import/export panes. |
| src/components/Home.vue | Adds build-info display but still injects globalComponents. |
| src/build-info.ts | Updates generated build metadata (time/branch/name). |
| src/App.vue | Uses DEF.appName for navigation title and minor formatting. |
| public/assets/xslt/ReqIF-to-PIG.sef.json | Updates the compiled XSLT SEF artifact. |
| package.json | Renames package from CASCaRA_PIG-App to CASCaRA-App. |
| README.md | Updates meta-model link URL. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Normalize filename before checking extension Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Correct message creation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Clone Rsp before adding response. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
csaenz-psg
previously approved these changes
Feb 26, 2026
…mon-code' (previously 'utils').
- and applied some colors ... to be discussed
Contributor
Author
|
Chris, as you had previously approved this pull-request, I will bypass another review .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.